#ifndef BROWSERVIEWDLG_H
#define BROWSERVIEWDLG_H

#include <QDialog>
#include <QWebView>
#include <QPushButton>
#include <QVBoxLayout>
#include <QToolBar>
#include <QLabel>

class BrowserViewDlg : public QDialog
{
    Q_OBJECT
public:
    explicit BrowserViewDlg(const QUrl& url);
private slots:
    void openBrowser();
    void closeClicked();
    void setTitle();
    void setProgress(int p);
    void finishLoading(bool);
private:
    bool progress;
    QLabel *label;
    QWebView *view;
    QPushButton *externalBrowser;
    QVBoxLayout *layout;
    QToolBar *toolBar;
};

#endif // BROWSERVIEWDLG_H
